package com.optimize1;

/**
 * Time    : 2023/3/22 15:28
 * Author  : 王摇摆
 * FileName: AirVehicle.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class AirVehicle {
    private String name;

    public AirVehicle(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void run(){
        System.out.println(this.getName()+"可以在空中行驶！");
    }
}
